package com.itheima.user.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * MongoDB 配置类
 * Spring Boot 会自动根据 Nacos 配置创建 MongoTemplate
 */
@Configuration
@EnableMongoRepositories(basePackages = "com.itheima.user.repository")
@EnableMongoAuditing
public class MongoConfig {
    
    // Spring Data MongoDB 会自动配置
    // 自动读取 spring.data.mongodb.database 配置
    
}